package io.bw.ratelimiter.core.rule;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;
import lombok.ToString;

@Setter
@Getter
@Builder
@NoArgsConstructor
@AllArgsConstructor
@ToString
public class FlowRule implements Rule {

  private String resource;
  private int count;
  private boolean clusterMode;

  @Override
  public String getResource() {
    return resource;
  }

  @Override
  public int getCount() {
    return count;
  }

  @Override
  public boolean getClusterMode() {
    return clusterMode;
  }
}
